<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta http-equiv="Content-Type" content="text/html" />
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=1000,maximum-scale=1.0" />
<title>
	<?php
	/*
	 * Print the <title> tag based on what is being viewed.
	 */
	global $page, $paged;

	wp_title( '|', true, 'right' );

	// Add the blog name.
	bloginfo( 'name' );

	// Add the blog description for the home/front page.
	$site_description = get_bloginfo( 'description', 'display' );
	if ( $site_description && ( is_home() || is_front_page() ) ) {
		echo " | $site_description";
	}

	// Add a page number if necessary:
	if ( $paged >= 2 || $page >= 2 ) {
		echo ' | ' . sprintf( __( 'Page %s', LANGUAGE_ZONE ), max( $paged, $page ) );
	}
	?>
</title>
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />

<!-- FAVICON -->
<?php
$icon = of_get_option( 'appearance_favicon_uploader' );
echo empty($icon)?'':'<link rel="icon" type="image/png" href="' .$icon. '" />'; 
?>

<!-- BG BUILDER -->
<?php //dt_options_css(); ?>

<?php wp_head(); ?>

<?php if(   is_page_template('dt_home.php') ||
            is_page_template('dt_blog_slider.php') ||
            is_page_template('dt_home_full.php') ): ?>
    <?php
    global $post;
    $defaults = array(
        'timeout'   => 10
    );
    $opts = get_post_meta( $post->ID, 'dt_slider-layout', true );
    $opts = wp_parse_args( $opts, $defaults );
    ?>
    <script type="text/javascript">
    /* <![CDATA[ */
        
        slider_auto = 1000*<?php echo $opts['timeout']; ?>; // interval in ms for slider autoplay, 0 - autoplay disabled

    /* ]]> */
    </script>
<?php endif; ?>    

<!-- HIGHSLIDE -->
<script type="text/javascript">
/* <![CDATA[ */
	// DO NOT REMOVE!
	// b21add52a799de0d40073fd36f7d1f89
	if( typeof window['hs'] !== 'undefined' ) {
        hs.graphicsDir = '<?php echo get_template_directory_uri(); ?>/js/plugins/highslide/graphics/';
    }
	/* ]]> */
</script>

<!-- GOOGLE ANALITICS -->
<?php echo of_get_option('misc_a_code_textarea', ''); ?>

<?php dt_options_css(); ?>

</head>

<body <?php body_class(); ?>>

	<div id="header_bg">
	<div id="header">
	
	
	
	
	  <div id="logo">
		<div>
			<a href="<?php echo site_url('/'); ?>">
				<?php
				$logo_h = 110;
				$logo_w = 900;
				$skin = of_get_option( 'misc_colour_schema_select', 'pink' );
				
				$img_def = get_template_directory_uri()."/images/$skin/logo.png";
				$img = of_get_option( 'appearance_logo_uploader', false );
				
				if( $img ) {
                    $args = array(
                        'src'       => $img,
                        'width'     => $logo_w,
                        'height'    => $logo_h,
                        'upscale'   => false
                    );
                    $thumb = dt_get_thumbnail( $args );
                    $img = $thumb['thumnail_img'];
				}else {
					$img = $img_def;
				}
                ?>
				
                <img src="<?php echo esc_attr($img); ?>" alt="<?php bloginfo('name'); ?>" />
			</a>
		</div>
	  </div>
	  
	  
	  
	  <?php echo dt_get_toptext( 'frontend' ); ?>
	  
	  
	  
		<?php
		$theme_location = 'primary-menu';
        $parent_clicable = of_get_option( 'menu_parent_menu_clickable_checkbox' );
		$args = array(
			'container'			=> false,
			'menu_id' 			=> 'mainmenu',
			'fallback_cb' 		=> 'dt_page_menu',
			'theme_location' 	=> $theme_location,
			'parent_clicable' 	=> $parent_clicable,
			'menu_class' 		=> false,
			'container_class'	=> false
		);
		if( has_nav_menu( $theme_location ) ){
			$walker_args = array(
                'theme_location' 	=> $theme_location,
				'parent_clicable' 	=> $parent_clicable
			);
			$args['walker'] = new Custom_Walker_Nav_Menu( $walker_args );
			wp_nav_menu( $args );
		}else{
			wp_nav_menu( $args );
		}
		?>

        
		<div id="language-bar">
			<a href="<?php echo site_url('/') . "/?lang=ro-RO"; ?>" title="Romana"><img src="<?php echo get_template_directory_uri()."/images/ro.png"; ?>" alt="Romana" /></a>
			<a href="<?php echo site_url('/') . "/?lang=en-GB"; ?>" title="English"><img src="<?php echo get_template_directory_uri()."/images/en.png"; ?>" alt="English" /></a>
		</div>
		
	</div>
	</div>
	
	<?php do_action( 'dt_area_under_menu' ); ?>
	
	<div id="content_t"></div>
	<div id="content_spot_t">
		<div id="content_spot_b">
			<div id="content" class="section">